package com.talent.service.base.config;

import feign.Logger;
import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName：OpenFeignConfig
 * @Author: hszhou
 * @Date: 2025/2/28 10:46
 * @Description: openfeign的配置
 */
@Configuration
public class OpenFeignConfig {


    @Bean
    Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }


    /**
     * 重试
     * @return
     */
    @Bean
    Retryer retryer(){
        return new Retryer.Default();
    }

}
